package com.party.orders.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.party.domain.Refund;
/**
 * 
 * @author Caizhf
 * @date 2017年8月15日下午5:38:33
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: 退款</p>
 *
 */
public interface RefundMapper {

	Refund findById(int rfid);

	Integer refundResponseExecuteUpdate(@Param("gmtRefundPay")Date gmtRefundPay, 
			@Param("buyerLogonId")String buyerLogonId,@Param("rfid") int rfid);

	Integer refundFailueredExcuteUpdate(@Param("refuseReason")String refuseReason, @Param("rfid")int rfid);

	Refund findByShopCartId(int spid);

	Integer deleteById(int rfid);

	Integer updateById(@Param("userRefundReason")String userRefundReason, @Param("refuseReason")String refuseReason, 
			@Param("refundFee")String refundFee,@Param("rfid") int rfid);

	int CountList(@Param("aid") Integer aid, @Param("caid") Integer caid);

	List<Refund> list(@Param("aid")Integer aid, @Param("caid")Integer caid, 
			@Param("startIndex")int startIndex, @Param("pageSize")int pageSize);

}
